From 88eca2a60d536012bfc9ddf61c791154f2949958 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Fri, 25 Nov 2005 17:08:22 +0000 Subject: [PATCH] Don't issue the iptables diagnostic when removing entries. Depending upon your hotplug config, the offline event may come through to this script twice, and the iptables -D will fail the second time. Signed-off-by: Ewan Mellor --- tools/examples/vif-common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/examples/vif-common.sh b/tools/examples/vif-common.sh index a8750f94b4..f7a488082a 100644 --- a/tools/examples/vif-common.sh +++ b/tools/examples/vif-common.sh @@ -63,6 +63,7 @@ function frob_iptable() fi iptables "$c" FORWARD -m physdev --physdev-in "$vif" "$@" -j ACCEPT || + [ "$c" == "-D" ] || log err \ "iptables $c FORWARD -m physdev --physdev-in $vif $@ -j ACCEPT failed. If you are using iptables, this may affect networking for guest domains." -- 2.30.2